<?php

namespace App\Repositories;

use Prettus\Repository\Eloquent\BaseRepository;
use Prettus\Repository\Criteria\RequestCriteria;
use App\Repositories\DeportmentRepository;
use App\Entities\Deportment;
use App\Validators\DeportmentValidator;

/**
 * Class DeportmentRepositoryEloquent
 * @package namespace App\Repositories;
 */
class DeportmentRepositoryEloquent extends BaseRepository implements DeportmentRepository
{
    /**
     * Specify Model class name
     *
     * @return string
     */
    public function model()
    {
        return Deportment::class;
    }

    protected $fieldSearchable = [
        'name' => 'like'
    ];

    /**
     * Boot up the repository, pushing criteria
     */
    public function boot()
    {
        //$this->pushCriteria(app(RequestCriteria::class));
    }

}
